package com.example.demo.demos.web;

import org.springframework.stereotype.Component;

@Component
public class ZhangSanHandler extends AbstractHandler {
    @Override
    public void weChatPay(String name) {
        //业务逻辑
        System.out.println("微信支付成功");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        Factory.register("张三", this);
    }
}
